<?php

	include_once('ProfileService.php');


	if(isset($_SESSION['userId']) && !empty($_SESSION['userId']) && isset($_POST['date'])){
		$service = new ProfileService();

		$userId = $_SESSION['userId'];
		//$userId = 1;//temporarily hardcoded for testing
		$date = $_POST['date'];

		$results = $service->getFullProfile($userId, $date);
		print($results);
	}/*else{//debugging default
		$service = new ProfileService();
		//$userId = $_SESSION['userId'];
		$userId = 1;//temporarily hardcoded for testing
		$date = $_POST['date'];

		$results = $service->getFullProfile($userId, $date);
		print($results);
	}*/

	/*
		get database connection
		get username & password
		query database for matching user
		join on points table

		return profile

	*/
?>